home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2001 May / SGI IRIX Installation Tools & Overlays 2001 May - Disc 3.iso / relnotes / impactcomp / ch03.z / ch03
Text File  |  2001-04-16  |  15KB  |  397 lines

  1.  
  2.  
  3.  
  4.                                   - 1 -
  5.  
  6.  
  7.  
  8.        3.  _K_n_o_w_n__P_r_o_b_l_e_m_s__a_n_d__W_o_r_k_a_r_o_u_n_d_s
  9.  
  10.        _M_a_x_i_m_u_m _I_m_a_g_e _S_i_z_e
  11.  
  12.           +o The maximum image size that OCTANE Compression or
  13.             IMPACT Compression can compression or decompression in
  14.             hardware is 4080 pixels wide by 4088 lines high.
  15.  
  16.           +o The maximum image size the scaler & color space
  17.             converter hardware is capable of processing during
  18.             decompression to memory or uncompressed data capture is
  19.             1024 pixels wide by 1000 lines high.  Image sizes
  20.             larger than this maximum are scaled and/or color space
  21.             converted using software on the host CPU.
  22.  
  23.        _V_i_d_e_o _C_o_n_t_r_o_l _P_a_n_e_l
  24.  
  25.           +o In configurations without OCTANE Digital Video or
  26.             IMPACT Video, the "Live Video Output" utility will
  27.             fail.  Without OCTANE Digital Video or IMPACT Video,
  28.             OCTANE Compression and IMPACT Compression has no direct
  29.             connection to the graphics subsystem, and cannot
  30.             perform this operation.
  31.  
  32.        _C_o_m_p_r_e_s_s_i_o_n _L_i_b_r_a_r_y _I_n_t_e_r_l_e_a_v_e
  33.  
  34.           +o When using the interleave functionality of the
  35.             compression library (CL_IMPACT_FRAME_INTERLEAVE is
  36.             TRUE), the size of the uncompressed (Frame) ring buffer
  37.             must be a multiple of the uncompressed, _i_n_t_e_r_l_e_a_v_e_d
  38.             image size.
  39.  
  40.        _Y_C_r_C_b _t_o _R_G_B, _R_G_B _t_o _Y_C_r_C_b _c_o_l_o_r _c_o_n_v_e_r_s_i_o_n _i_s _n_o_t
  41.        _s_y_m_m_e_t_r_i_c_a_l
  42.  
  43.           +o There is a difference between the two pieces of
  44.             hardware that perform color space conversion on the
  45.             OCTANE Compression or IMPACT Compression option.  The
  46.             YCrCb to RGB conversion (decompression/capture) uses
  47.             one color co-siteing arrangement, while the RGB to
  48.             YCrCb conversion (compression/playback) uses another.
  49.             This will manifest itself as the color components of
  50.             the digital video "moving" to the right in reference to
  51.             the luminance when compressed/decompressed multiple
  52.             times (where the uncompressed format in memory is
  53.             RGBX).
  54.  
  55.        Workaround
  56.  
  57.           +o For each round-trip (compressed to decompressed to
  58.             compressed), the color components will move one half
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                   - 2 -
  71.  
  72.  
  73.  
  74.             pixel to the right.  For most applications this shift
  75.             will be acceptable (undetectable).
  76.  
  77.           +o Where possible, use the YCrCb color space for
  78.             uncompressed images in memory.  Use software color
  79.             space conversion (on the host CPU) if high
  80.             quality/multiple generation compositing is to be
  81.             performed.
  82.  
  83.        _O_u_t _o_f _R_a_n_g_e _C_o_l_o_r_s _R_e_v_e_r_s_e_d _d_u_r_i_n_g _Y_C_r_C_b _t_o _R_G_B _c_o_n_v_e_r_s_i_o_n
  84.  
  85.           +o During YCrCb to RGB color space conversion (optionally
  86.             specified during uncompressed video capture or memory
  87.             to memory decompression), out of range values may wrap.
  88.             This will manifest itself through the appearance of
  89.             incorrect color values in the captured data.
  90.  
  91.        Workaround
  92.  
  93.           +o If the operation is uncompressed video capture, verify
  94.             that the brightness control (available on the pro panel
  95.             of vcp) for the input is set to the default factory
  96.             setting.  Varying the brightness value may have an
  97.             effect on the degree of failure.
  98.  
  99.           +o To avoid the problem completely, the application can
  100.             capture the data to memory in the YCrCb colorspace and
  101.             convert to RGB on the host CPU.
  102.  
  103.        _H_a_r_d_w_a_r_e _I_n_i_t_i_a_l_i_z_a_t_i_o_n _o_n _F_i_r_s_t _U_s_e
  104.  
  105.           +o The first use of any portion of the OCTANE Compression
  106.             or IMPACT Compression board will trigger the
  107.             initialization of the hardware.  This initialization
  108.             requires the down-load and startup of microcode, and
  109.             may take up to thirty (30) seconds to complete.
  110.  
  111.             The requested processing will begin as soon as the
  112.             initialization of the hardware has completed.
  113.  
  114.        Workaround
  115.  
  116.           +o The system administrator may configure the system to
  117.             start the video daemon automatically upon system boot.
  118.             This will have the effect of performing an operation on
  119.             OCTANE Compression or IMPACT Compression, and the
  120.             hardware will be initialized.
  121.  
  122.             Use the command "chkconfig videod on" to effect this
  123.             change.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                                   - 3 -
  137.  
  138.  
  139.  
  140.        _A_n_a_l_o_g _V_i_d_e_o _I_n_p_u_t _c_o_n_s_i_d_e_r_a_t_i_o_n_s _w_i_t_h _O_C_T_A_N_E _D_i_g_i_t_a_l _V_i_d_e_o
  141.        _o_r _I_M_P_A_C_T _V_i_d_e_o
  142.  
  143.           +o To fully utilize the functionality of OCTANE Digital
  144.             Video or IMPACT Video with the analog video source of
  145.             OCTAME Compression or IMPACT Compression, all inputs to
  146.             both OCTANE Digital Video/IMPACT Video and OCTANE
  147.             Compressoin/IMPACT Compression must be locked together,
  148.             and the Input Autophaser should have the value
  149.             "normal".
  150.  
  151.        _c_l_G_e_t_N_e_x_t_I_m_a_g_e_I_n_f_o() _S_t_a_t_u_s _I_n_f_o_r_m_a_t_i_o_n
  152.  
  153.           +o The information returned in the _s_t_a_t_u_s element of the
  154.             CLimageInfo structure returned by the
  155.             clGetNextImageInfo() call is incorrect.  At present,
  156.             the status tracks the imagecount field, and does not
  157.             derive the odd/even attributes from the video input.
  158.  
  159.             This bug will be addressed in a future software
  160.             release.
  161.  
  162.        _C_o_m_p_r_e_s_s_e_d, _V_e_r_t_i_c_a_l_l_y _D_e_c_i_m_a_t_e_d _I_m_a_g_e_s
  163.  
  164.           +o Images captured using the one half vertical decimation
  165.             mode (for example, using the halfy option of dmrecord)
  166.             may be of poor quality.  The algorithm for reducing the
  167.             number of lines of video data is straight decimation,
  168.             and operates in such a way that when fields are viewed
  169.             as a frame, pairs of adjacent lines have been
  170.             discarded.
  171.  
  172.             Generally, better image quality will result through the
  173.             use of lower JPEG quality factor values than will be
  174.             seen by using either the one half vertical or one half
  175.             horizontal decimation modes.
  176.  
  177.        _T_r_i_g_g_e_r _i_s _N_o_t _S_u_p_p_o_r_t_e_d
  178.  
  179.           +o The trigger functionality of the OCTANE Compression and
  180.             IMPACT Compression is not supported in this release.
  181.  
  182.             This deficiency will be addressed in a future software
  183.             release.
  184.  
  185.        _S_q_u_a_r_e _P_i_x_e_l _V_i_d_e_o _F_o_r_m_a_t _C_o_n_s_i_d_e_r_a_t_i_o_n_s
  186.  
  187.           +o Square pixel NTSC & PAL video formats are not supported
  188.             timings in the 601 specification.  As such, it is
  189.             improper to generate these timings on an OCTANE
  190.             Compression or IMPACT Compression and send them out the
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                                   - 4 -
  203.  
  204.  
  205.  
  206.             digital ports of OCTANE Digital Video or IMPACT Video.
  207.  
  208.           +o The square pixel timings are not native timing formats
  209.             of either OCTANE Digital Video or IMPACT Video, and may
  210.             cause unexpected results.
  211.  
  212.        _F_a_i_l_u_r_e _t_o _C_o_m_p_i_l_e _E_x_a_m_p_l_e _C_o_d_e
  213.  
  214.           +o In order to compile the example code provided, the IRIS
  215.             Developer's Option, Digital Media Development
  216.             Environment, 6.5 (dmedia_dev), needs to have been
  217.             installed on the system.
  218.  
  219.        _C_a_p_t_u_r_e _T_o_o_l _C_o_n_s_i_d_e_r_a_t_i_o_n_s
  220.  
  221.           +o When running on a system that does not have either
  222.             OCTANE Digital Video or IMPACT Video installed, the
  223.             capture tool will utilize both channels of the OCTANE
  224.             Compression or IMPACT Compression board.
  225.  
  226.             This is a limitation of the capture application.
  227.  
  228.           +o The Compression selection on the "Settings ..." dialog
  229.             of Capture will reset to "SGI Movie 2 [MVC2]" each time
  230.             the settings dialog is opened.
  231.  
  232.        _D_m_p_l_a_y _T_o_o_l _C_o_n_s_i_d_e_r_a_t_i_o_n_s
  233.  
  234.           +o When used with either an OCTANE Digital Video or IMPACT
  235.             Video board, the dmplay tool may not place the video
  236.             output window appropriately on the graphics monitor,
  237.             and if there are other video applications running,
  238.             conflict with those applications.
  239.  
  240.        _V_i_d_e_o _a_n_d _C_o_m_p_r_e_s_s_i_o_n _S_i_z_e _R_e_q_u_i_r_e_m_e_n_t_s
  241.  
  242.           +o When programming OCTANE Compression or IMPACT
  243.             Compression for capture or playback of compressed data
  244.             from/to video, be sure that the uncompressed size of
  245.             the image (CL_IMAGE_WIDTH and CL_IMAGE_HEIGHT) match
  246.             the size set on the VL_CODEC node for the VL_SIZE
  247.             parameter.
  248.  
  249.             If the sizes are not the same, unexpected results (such
  250.             as channel hangs) may occur.
  251.  
  252.        _c_l_C_o_m_p_r_e_s_s_I_m_a_g_e
  253.  
  254.           +o The Compression Library call _c_l_C_o_m_p_r_e_s_s_I_m_a_g_e() is not
  255.             supported on OCTANE Compression or IMPACT Compression.
  256.             The issue is that there is no way to specify to the
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                                   - 5 -
  269.  
  270.  
  271.  
  272.             underlying routines the size of the compressed data
  273.             buffer.
  274.  
  275.        _A_s_y_n_c_h_r_o_n_o_u_s _S_t_o_p _C_o_n_s_i_d_e_r_a_t_i_o_n_s
  276.  
  277.           +o When an application sets the CL_IMPACT_CODEC_CONTROL
  278.             parameter with the value CL_IMPACT_STOP, the
  279.             application is required to close and re-open the codec
  280.             if it wishes to perform compression or decompression
  281.             operations again.
  282.  
  283.        _C_o_m_p_r_e_s_s_i_o_n _L_i_b_r_a_r_y _B_u_f_f_e_r _C_o_n_s_i_d_e_r_a_t_i_o_n_s
  284.  
  285.           +o Applications should use the _c_l_C_r_e_a_t_e_B_u_f() routine to
  286.             create buffers for use with OCTANE Compression or
  287.             IMPACT Compression.  This routine ensures that the data
  288.             buffer is page aligned, and is padded to at least a
  289.             cache line boundary at the end to ensure that no cache
  290.             lines are shared.
  291.  
  292.             If an application must use buffers that are not
  293.             allocated using clCreateBuf(), they should make every
  294.             attempt to ensure that the start of the data is page
  295.             aligned and is a multiple of 512 bytes in length.
  296.             Applications may use _m_e_m_a_l_i_g_n( _1_6_3_8_4, _s_i_z_e ) to
  297.             allocate page aligned buffers.
  298.  
  299.             If an application is not able to use clCreateBuf(),
  300.             unexpected results (channel hangs or corrupted data)
  301.             may occur if a cache line is shared between the data
  302.             buffer and some other variable.
  303.  
  304.        _L_o_w _D_a_t_a _C_o_m_p_r_e_s_s_i_o_n _R_a_t_i_o _C_o_n_s_i_d_e_r_a_t_i_o_n_s
  305.  
  306.           +o As the compression ratio decreases, the bandwidth to
  307.             the ultimate target device increases.  Most disks
  308.             standard on the Indigo2 platform are able to handle a
  309.             7:1 compressed data stream to disk using the dmrecord &
  310.             dmplay applets.
  311.  
  312.             For lower compression ratios, it is necessary to move
  313.             to striped xlv volumes.  Striped xlv volumes enables
  314.             higher bandwidth by fanning the data flow to different
  315.             disks concurrently.  For higher bandwidths, balance the
  316.             disks between the internal and external SCSI busses of
  317.             the Indigo2 system.
  318.  
  319.             An example system that was using during IMPACT
  320.             Compression development was a 250MHz R4400 processor
  321.             with 128MB RAM and two Quantum XP32150 2GB drives.  One
  322.             drive was installed internally, the other externally.
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                   - 6 -
  335.  
  336.  
  337.  
  338.             By setting up a single striped xlv volume on these two
  339.             disks, dmrecord and dmplay were able to sustain 4:1
  340.             compressed video with 48KHz audio to disk.
  341.  
  342.             To achieve 2:1 compressed data streams to disk, at
  343.             least one additional hard disk is required, and a
  344.             change in the programming model used to get the data to
  345.             disk.  See the applets _c_o_m_p_t_o_d_s_k and _d_s_k_t_o_d_e_c_o_m_p in
  346.             /usr/people/4Dgifts/examples/dmedia/compression/impact/comptodsk
  347.             for an example of how to get 2:1 compressed data to
  348.             disk.
  349.  
  350.        _B_i_t_r_a_t_e _a_n_d _A_c_h_i_e_v_e_d _C_o_m_p_r_e_s_s_i_o_n _R_a_t_i_o
  351.  
  352.           +o In some cases of very low compression ratios (4:1 and
  353.             less), developers my notice that the actual achieved
  354.             compression ratio may be less than the target they had
  355.             provided.  This can occur when the data is easily
  356.             processed by the JPEG algorithm, and the co-efficient
  357.             scale values are all 1's.
  358.  
  359.             Essentially the Discrete Cosine Transform step of the
  360.             JPEG algorithm didn't find much high frequency
  361.             transitions to encode.
  362.  
  363.             This effect is easily seen by compressing a single
  364.             color image with high bitrate values.
  365.  
  366.        _C_L__B_I_T_R_A_T_E _a_n_d _C_L__J_P_E_G__Q_U_A_L_I_T_Y__F_A_C_T_O_R _I_n_t_e_r_a_c_t_i_o_n
  367.  
  368.           +o When both CL_BITRATE and CL_JPEG_QUALITY_FACTOR are
  369.             provided to the compression library, the quantization
  370.             tables of the first compressed image are based on
  371.             CL_JPEG_QUALITY_FACTOR.
  372.  
  373.             For all subsequent images, the quantization tables will
  374.             be based upon the value of CL_BITRATE.
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.